package com.ruoyi.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 时间轴对象 app_dynamic_timeline
 *
 * @author ruoyi
 * @date 2023-02-28
 */
@TableName(value = "app_dynamic_timeline")
public class AppDynamicTimeline extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crtTime;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 动态id
     */
    @Excel(name = "动态id")
    private Long dynamicId;

    /**
     * 是否是自己的，0：其他人，1：自己
     */
    @Excel(name = "是否是自己的，0：其他人，1：自己")
    private Integer isOwn;

    /**
     * 是否已读，0：未读，1：已读
     */
    @Excel(name = "是否已读，0：未读，1：已读")
    private Integer isRead;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }

    public Date getCrtTime() {
        return crtTime;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setDynamicId(Long dynamicId) {
        this.dynamicId = dynamicId;
    }

    public Long getDynamicId() {
        return dynamicId;
    }

    public void setIsOwn(Integer isOwn) {
        this.isOwn = isOwn;
    }

    public Integer getIsOwn() {
        return isOwn;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    public Integer getIsRead() {
        return isRead;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("crtTime", getCrtTime()).append("userId", getUserId()).append("dynamicId", getDynamicId()).append("isOwn", getIsOwn()).append("isRead", getIsRead()).toString();
    }
}
